package com.example.designpartten.decorator;

/**
 * @author hql
 * @date 2020/4/14 11:30
 */
public class Client {
    public static void main(String[] args) {
        Compent compent = new ConCompent();

        compent = new ConDrcorator1(compent);
        compent = new ConDrcorator2(compent);
        compent.doSomething();
    }
}
